package com.spring.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sys_role_menu")
public class SysRoleMenu {
    @TableId(type = IdType.AUTO)
    private int id;
    private int roleId;
    private int menuId;

    public SysRoleMenu(int roleId, String menuId) {
        this.roleId = roleId;
        this.menuId = Integer.parseInt(menuId);
    }
}
